home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: paulmck@ix.netcom.com
- Newsgroups: comp.lang.c
- Subject: Re: Turn off padding in structure declaration, How???
- Date: 24 Feb 1996 19:19:50 GMT
- Organization: Netcom
- Message-ID: <4gnocm$698@cloner4.netcom.com>
- References: <312e5bf7.2912240@news.csus.edu>
- Reply-To: paulmck@ix.netcom.com
- NNTP-Posting-Host: ix-nyc7-07.ix.netcom.com
- X-NETCOM-Date: Sat Feb 24 11:19:57 AM PST 1996
- X-Newsreader: IBM NewsReader/2 v1.03
-
- In <312e5bf7.2912240@news.csus.edu>, wleong@sfsu.edu (Jerry Leong) writes:
- >Hi,
- > I couldn't find any good thread regarding this problem, so I guess
- >I'll post the question up on the net.
- > I need to define a structure that has odd numbers of bytes. And I do
- >not want any internal padding being done on my structure. Obviously,
- >this is beyond my realm of knowledge. How can this be done ?
- > Thanx in advance.
- >
- Depends on the compiler. Microsoft has a #pragma that does this as well as
- a command-line option. Borland has a command-line option to do this.
- I'm sure that GCC has a command-line option to do this as well.
-
- Paul
-
-